package com.hx.portal.interceptor;


import com.hx.hospital.pojo.User;

public class UserThreadLocal {

    private static ThreadLocal<User> tl=new ThreadLocal<>();

    public static void set(User user){
        tl.set(user);
    }

    public static User get(){
        return tl.get();
    }

    public static void remove(){
        tl.remove();
    }

}
